
using System;
using Qdb;

namespace Qdb.Events
{
	public class TransactionalEventArgs : EventArgs
	{
		private readonly Qdb.Internal.Transaction _transaction;

		public TransactionalEventArgs(Qdb.Internal.Transaction transaction)
		{
			_transaction = transaction;
		}

		public virtual object Transaction()
		{
			return _transaction;
		}

		public virtual IObjectContainer ObjectContainer()
		{
			return _transaction.ObjectContainer();
		}
	}
}
